package com.learncloud.common.exception;

/**
 * @author lbx
 * @version 1.0.0
 * @enumName ErrorCode
 * @description TODO
 * @date 2021/9/9 11:40
 **/
public enum ErrorCode implements IErrorCode {
    SUCESS("00000","成功")
    ;

    ErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    /**
     * code编码
     */
    private final String code;
    /**
     * 中文信息描述
     */
    private final String message;

    @Override
    public String getMessage() {
        return this.message;
    }

    @Override
    public String getCode() {
        return this.code;
    }
}
